'use strict';
const Controller = require('egg').Controller;


class DanmuController extends Controller {
	async update() {
		const { ctx, service } = this;
		const { sectionId } = ctx.query;
		const payload = ctx.request.body || {};
		const res = await service.danmu.update(sectionId, payload);
		ctx.body = res;
	}
	async find() {
		const { ctx, service } = this;
		const { sectionId } = ctx.query;
		const res = await service.danmu.find(sectionId);
		ctx.body = res;
	}


}
module.exports = DanmuController